<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: xpt2046/xpt2046.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0e80fb08802ded836bfad3909581be7f.html">xpt2046</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xpt2046.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="xpt2046_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structxpt2046__win.html">xpt2046_win</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">initial calibration values for your display Note: these values are not rotated  <a href="structxpt2046__win.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct__xpt2046.html">_xpt2046</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct__sdev.html">_sdev</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a0f015f6bedcfd4583ed1133ed6d11963"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a0f015f6bedcfd4583ed1133ed6d11963">XPT2046_SAMPLES</a>&#160;&#160;&#160;8 /* number of samples to take */</td></tr>
<tr class="memdesc:a0f015f6bedcfd4583ed1133ed6d11963"><td class="mdescLeft">&#160;</td><td class="mdescRight">number of time to read and average results  <a href="#a0f015f6bedcfd4583ed1133ed6d11963">More...</a><br /></td></tr>
<tr class="separator:a0f015f6bedcfd4583ed1133ed6d11963"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e35379ae648fa9db798144a9902f8ec"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a6e35379ae648fa9db798144a9902f8ec">XPT2046_DEBOUNCE</a>&#160;&#160;&#160;5 /* Debound value in mS */</td></tr>
<tr class="separator:a6e35379ae648fa9db798144a9902f8ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abce5dd412f3f040208dab108718fb875"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#abce5dd412f3f040208dab108718fb875">XPT2046_EVENTS</a>&#160;&#160;&#160;10 /* Number of queued touch events */</td></tr>
<tr class="separator:abce5dd412f3f040208dab108718fb875"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad6adcb00000ad4cdef14ece5e21bd81"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#aad6adcb00000ad4cdef14ece5e21bd81">XPT2046_READ_Y</a>&#160;&#160;&#160;0x91    /* Read Y position*/</td></tr>
<tr class="memdesc:aad6adcb00000ad4cdef14ece5e21bd81"><td class="mdescLeft">&#160;</td><td class="mdescRight">only need 4 commands for reading position or touch information  <a href="#aad6adcb00000ad4cdef14ece5e21bd81">More...</a><br /></td></tr>
<tr class="separator:aad6adcb00000ad4cdef14ece5e21bd81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f7063812ae4edbb96165244ee717815"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a1f7063812ae4edbb96165244ee717815">XPT2046_READ_Z1</a>&#160;&#160;&#160;0xb1	/* Read Z1 */</td></tr>
<tr class="separator:a1f7063812ae4edbb96165244ee717815"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee315feb898d4f6f35389cb3068ad1eb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#aee315feb898d4f6f35389cb3068ad1eb">XPT2046_READ_Z2</a>&#160;&#160;&#160;0xc1    /* read Z2 */</td></tr>
<tr class="separator:aee315feb898d4f6f35389cb3068ad1eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacb7a75fd6c78e1cd4e87fa930654ef6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#aacb7a75fd6c78e1cd4e87fa930654ef6">XPT2046_READ_X</a>&#160;&#160;&#160;0xd1	/* Read X position */</td></tr>
<tr class="separator:aacb7a75fd6c78e1cd4e87fa930654ef6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a1e217d8fafba01c2ad20b0986a613316"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structxpt2046__win.html">xpt2046_win</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a1e217d8fafba01c2ad20b0986a613316">xpt2046_win_t</a></td></tr>
<tr class="memdesc:a1e217d8fafba01c2ad20b0986a613316"><td class="mdescLeft">&#160;</td><td class="mdescRight">initial calibration values for your display Note: these values are not rotated  <a href="#a1e217d8fafba01c2ad20b0986a613316">More...</a><br /></td></tr>
<tr class="separator:a1e217d8fafba01c2ad20b0986a613316"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08bf485f6a48ae0788b72c98a416e01c"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct__xpt2046.html">_xpt2046</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a08bf485f6a48ae0788b72c98a416e01c">xpt2046_t</a></td></tr>
<tr class="separator:a08bf485f6a48ae0788b72c98a416e01c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4224e555e9e1280374a4987534846703"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct__sdev.html">_sdev</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a4224e555e9e1280374a4987534846703">sdev_t</a></td></tr>
<tr class="separator:a4224e555e9e1280374a4987534846703"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:acb7288fd027f95ea7db88c6f8c7c2c2a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#acb7288fd027f95ea7db88c6f8c7c2c2a">XPT2046_spi_init</a> (void)</td></tr>
<tr class="separator:acb7288fd027f95ea7db88c6f8c7c2c2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73c23d30b0f5adc10232894c18112778"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a73c23d30b0f5adc10232894c18112778">XPT2046_key_flush</a> (void)</td></tr>
<tr class="separator:a73c23d30b0f5adc10232894c18112778"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1dccf53d8f7692a9ae5f272c7a16f462"><td class="memItemLeft" align="right" valign="top"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a1dccf53d8f7692a9ae5f272c7a16f462">XPT2046_read</a> (<a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> cmd)</td></tr>
<tr class="separator:a1dccf53d8f7692a9ae5f272c7a16f462"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02c4dcf896824df15a98acfbe045d19d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a02c4dcf896824df15a98acfbe045d19d">XPT2046_xy_raw</a> (<a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="el" href="cordic2c_8c.html#a46b4b48ef8c0c01099eb3bcdde8aa8db">X</a>, <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="el" href="cordic2c_8c.html#ab746e677f466f17031e92ed577fc3c15">Y</a>)</td></tr>
<tr class="separator:a02c4dcf896824df15a98acfbe045d19d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac22e4f7d0ddbfd16b0c685f90db56656"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#ac22e4f7d0ddbfd16b0c685f90db56656">XPT2046_xy_filtered</a> (<a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="el" href="cordic2c_8c.html#a46b4b48ef8c0c01099eb3bcdde8aa8db">X</a>, <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="el" href="cordic2c_8c.html#ab746e677f466f17031e92ed577fc3c15">Y</a>)</td></tr>
<tr class="separator:ac22e4f7d0ddbfd16b0c685f90db56656"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc3bff89c0ea5ee5bb74fa9ce6514789"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#abc3bff89c0ea5ee5bb74fa9ce6514789">nearest_run</a> (int *v, int size, int minsamples, int *count)</td></tr>
<tr class="separator:abc3bff89c0ea5ee5bb74fa9ce6514789"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16726a7a1ffb7ff25c3a2601b578cc19"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a16726a7a1ffb7ff25c3a2601b578cc19">XPT2046_xy_filtered_test</a> (<a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="el" href="cordic2c_8c.html#a46b4b48ef8c0c01099eb3bcdde8aa8db">X</a>, <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="el" href="cordic2c_8c.html#ab746e677f466f17031e92ed577fc3c15">Y</a>)</td></tr>
<tr class="separator:a16726a7a1ffb7ff25c3a2601b578cc19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0f1cf1130e264b4181a0b525c9be839"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#ab0f1cf1130e264b4181a0b525c9be839">XPT2046_task</a> (void)</td></tr>
<tr class="separator:ab0f1cf1130e264b4181a0b525c9be839"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69fc6431a2058d4fd8c26af6547cfae5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a69fc6431a2058d4fd8c26af6547cfae5">XPT2046_key</a> (<a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="el" href="cordic2c_8c.html#a46b4b48ef8c0c01099eb3bcdde8aa8db">X</a>, <a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *<a class="el" href="cordic2c_8c.html#ab746e677f466f17031e92ed577fc3c15">Y</a>)</td></tr>
<tr class="separator:a69fc6431a2058d4fd8c26af6547cfae5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c3571dfe466884bea2a25234aca83ad"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xpt2046_8h.html#a3c3571dfe466884bea2a25234aca83ad">sdev</a> (<a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *samples, int size, <a class="el" href="xpt2046_8h.html#a4224e555e9e1280374a4987534846703">sdev_t</a> *<a class="el" href="cordic2c_8c.html#a3da94d1c83a43c30add6c05fbbe1f194">Z</a>)</td></tr>
<tr class="separator:a3c3571dfe466884bea2a25234aca83ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a6e35379ae648fa9db798144a9902f8ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPT2046_DEBOUNCE&#160;&#160;&#160;5 /* Debound value in mS */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="xpt2046_8h_source.html#l00030">30</a> of file <a class="el" href="xpt2046_8h_source.html">xpt2046.h</a>.</p>

</div>
</div>
<a class="anchor" id="abce5dd412f3f040208dab108718fb875"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPT2046_EVENTS&#160;&#160;&#160;10 /* Number of queued touch events */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="xpt2046_8h_source.html#l00031">31</a> of file <a class="el" href="xpt2046_8h_source.html">xpt2046.h</a>.</p>

</div>
</div>
<a class="anchor" id="aacb7a75fd6c78e1cd4e87fa930654ef6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPT2046_READ_X&#160;&#160;&#160;0xd1	/* Read X position */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="xpt2046_8h_source.html#l00037">37</a> of file <a class="el" href="xpt2046_8h_source.html">xpt2046.h</a>.</p>

</div>
</div>
<a class="anchor" id="aad6adcb00000ad4cdef14ece5e21bd81"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPT2046_READ_Y&#160;&#160;&#160;0x91    /* Read Y position*/</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>only need 4 commands for reading position or touch information </p>

<p>Definition at line <a class="el" href="xpt2046_8h_source.html#l00034">34</a> of file <a class="el" href="xpt2046_8h_source.html">xpt2046.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1f7063812ae4edbb96165244ee717815"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPT2046_READ_Z1&#160;&#160;&#160;0xb1	/* Read Z1 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="xpt2046_8h_source.html#l00035">35</a> of file <a class="el" href="xpt2046_8h_source.html">xpt2046.h</a>.</p>

</div>
</div>
<a class="anchor" id="aee315feb898d4f6f35389cb3068ad1eb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPT2046_READ_Z2&#160;&#160;&#160;0xc1    /* read Z2 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="xpt2046_8h_source.html#l00036">36</a> of file <a class="el" href="xpt2046_8h_source.html">xpt2046.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0f015f6bedcfd4583ed1133ed6d11963"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XPT2046_SAMPLES&#160;&#160;&#160;8 /* number of samples to take */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>number of time to read and average results </p>

<p>Definition at line <a class="el" href="xpt2046_8h_source.html#l00029">29</a> of file <a class="el" href="xpt2046_8h_source.html">xpt2046.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a4224e555e9e1280374a4987534846703"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="struct__sdev.html">_sdev</a>  <a class="el" href="xpt2046_8h.html#a4224e555e9e1280374a4987534846703">sdev_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a08bf485f6a48ae0788b72c98a416e01c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="struct__xpt2046.html">_xpt2046</a>  <a class="el" href="xpt2046_8h.html#a08bf485f6a48ae0788b72c98a416e01c">xpt2046_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1e217d8fafba01c2ad20b0986a613316"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structxpt2046__win.html">xpt2046_win</a>  <a class="el" href="xpt2046_8h.html#a1e217d8fafba01c2ad20b0986a613316">xpt2046_win_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>initial calibration values for your display Note: these values are not rotated </p>
<ul>
<li>rotations are applied dynamically based on the display state and data structures </li>
</ul>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="abc3bff89c0ea5ee5bb74fa9ce6514789"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int nearest_run </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>minsamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a3c3571dfe466884bea2a25234aca83ad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int sdev </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>samples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xpt2046_8h.html#a4224e555e9e1280374a4987534846703">sdev_t</a> *&#160;</td>
          <td class="paramname"><em>Z</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a69fc6431a2058d4fd8c26af6547cfae5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int XPT2046_key </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>X</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>Y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a73c23d30b0f5adc10232894c18112778"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void XPT2046_key_flush </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1dccf53d8f7692a9ae5f272c7a16f462"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> XPT2046_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
          <td class="paramname"><em>cmd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="acb7288fd027f95ea7db88c6f8c7c2c2a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void XPT2046_spi_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00971">setup()</a>.</p>

</div>
</div>
<a class="anchor" id="ab0f1cf1130e264b4181a0b525c9be839"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void XPT2046_task </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00348">user_loop()</a>.</p>

</div>
</div>
<a class="anchor" id="ac22e4f7d0ddbfd16b0c685f90db56656"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int XPT2046_xy_filtered </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>X</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>Y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a16726a7a1ffb7ff25c3a2601b578cc19"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int XPT2046_xy_filtered_test </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>X</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>Y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a02c4dcf896824df15a98acfbe045d19d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XPT2046_xy_raw </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>X</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> *&#160;</td>
          <td class="paramname"><em>Y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:17 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
